<script>
export default {
  data(){
    return{
      msg:''
    }
  },
  methods:{
    sendingmsg() {
      this.$emit('pringmsg',this.msg)
    }
  }
}
</script>

<template>
  <h3>
    请x输x入x要x发x送x的x内x容x：<input type="text" v-model="msg">
    <button @click="sendingmsg">发送</button>
  </h3>
</template>

<style scoped>

</style>